<%@ page contentType="text/html; charset=UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"     uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<style>
#stateHises {text-align:center;border:1px solid #ddd; border-width:0 0 1px 1px;}

#stateHises th {background:#CCEEFF;}
#stateHises th,#comments td {height:22px; border:1px solid #ddd; border-width:1px 1px 0 0;}
</style>


<td align="left" colspan="4">
		<table width="100%" id="stateHises" >
			<thead>
				<tr class="ui-widget-header ">
					<th align="center"  style="width: 25%;"><s:text name="sa.stateChangeTime"/></th>
					<th align="center"  style="width: 25%;"><s:text name="sa.state.his.createBy"/></th>
					<th align="center"  style="width: 20%;"><s:text name="sa.state.his.to"/></th>
					<th align="center" style="width: 30%;"><s:text name="sa.state.his.stateDesc"/></th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="hisItem" items="${airSa.stateHisSet}">
					<c:if test="${hisItem.id != null}">
						<tr>
							<td align="center">
							    <c:if test="${hisItem.stateTo == 71}">
									<img width="20" height="20" src="./StationMgr_showFlagImage.do?flag=${hisItem.relativeStation}.png">
								</c:if>
								<c:if test="${hisItem.stateTo != 71}">
									<img width="20" height="20" src="./StationMgr_showFlagImage.do?flag=${hisItem.showImg}">
								</c:if>
								<fmt:formatDate value="${hisItem.createTime}" pattern="yyyy-MM-dd HH:mm"/>
							</td>
							<td align="center">${hisItem.createBy.username}</td>
							<td align="center">${hisItem.stateToValue}</td>
							<td align="center">
								<c:if test="${hisItem.stateTo == 71}">
									${hisItem.stateToDesc}(${hisItem.relativeFlightNo})
								</c:if>
								<c:if test="${hisItem.stateTo != 71}">
									${hisItem.stateToDesc}
								</c:if>
							</td>
						</tr>
					</c:if>
				</c:forEach>
			</tbody>
		</table>
</td>
